/* Modern theme for the blog */
:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #4f46e5;
  --primary-600: #4338ca;
  --ring: rgba(79, 70, 229, .2);
}

html,
body {
  background:
    radial-gradient(900px 440px at -10% -10%, rgba(79,70,229,0.12), transparent 60%),
    radial-gradient(840px 420px at 110% -10%, rgba(16,185,129,0.12), transparent 60%),
    var(--bg);
  color: var(--text);
}

.container-page {
  padding-top: 24px;
  padding-bottom: 40px;
}

.card {
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 16px 36px rgba(0,0,0,.10); 
  border-color: rgba(17,24,39,.10); 
}

.card-title {
  font-weight: 700;
}

.btn {
  border-radius: 10px;
  font-weight: 600;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  box-shadow: 0 8px 18px rgba(79,70,229,.25);
}

.btn:active { 
  transform: translateY(1px) scale(0.99); 
  filter: brightness(.98); 
}

/* Forms (style raw inputs even without form-control) */
form .form-label {
  font-weight: 600;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form textarea,
form select {
  width: 100%;
  border: 1px solid rgba(17, 24, 39, .12);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

form textarea {
  min-height: 160px;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

/* List styles */
.list-group-item {
  border: none;
  border-bottom: 1px solid rgba(17, 24, 39, .06);
  padding: 16px 0;
  transition: background-color .15s ease;
}

.list-group-item:hover { 
  background: rgba(99,102,241,0.06); 
}

.muted {
  color: var(--muted);
}

/* Pagination */
.pagination {
  --bs-pagination-active-bg: var(--primary);
  --bs-pagination-active-border-color: var(--primary);
}

.page-link { 
  border-radius: 10px; 
  border: 1px solid rgba(17,24,39,.12); 
  box-shadow: 0 4px 10px rgba(0,0,0,.06); 
  transition: border-color .15s ease, transform .08s ease; 
}

.page-link:hover { 
  border-color: rgba(17,24,39,.26); 
  transform: translateY(-1px); 
}

.page-item.active .page-link { 
  box-shadow: 0 8px 18px rgba(79,70,229,.30); 
  border: none; 
}

/* Spacing helpers */
.mt-24 {
  margin-top: 24px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

/* Navbar styling for existing ul.nav */
.nav.justify-content-center {
  position: sticky; 
  top: 0; 
  z-index: 1020;
  background: linear-gradient(135deg, rgba(31,41,55,0.92), rgba(17,24,39,0.90));
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 12px;
}

.nav.justify-content-center .nav-link {
  color: rgba(255,255,255,.86);
  transition: color .15s ease, transform .08s ease;
}

.nav.justify-content-center .nav-link:hover { 
  color: #fff; 
  transform: translateY(-1px); 
}

.nav.justify-content-center .dropdown-menu { 
  border-radius: 12px; 
  border: 1px solid rgba(17,24,39,.08); 
  box-shadow: 0 18px 44px rgba(0,0,0,.20); 
}